package com.zhiyou100.springbootmybatisplus.thread;

public class ThreadDemo1 extends  Thread{
    public ThreadDemo1 (String name){
        super(name);
    }
    /*run方法封装该线程得功能*/
    @Override
    public void run() {
        //输出当前线程得名字
        System.out.println(Thread.currentThread().getName());
        System.out.println(Thread.currentThread().getState());
        m1();
    }
    public void m1(){
        System.out.println("m1方法");
    }
}
